﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using BCCommon;
using BCCommon.TMS.Transport;

namespace BCDto.MySql.FreightConfigurationExtention
{
    /// <summary>
    /// 运费配置零担修改模型
    /// </summary>
    public class FreightConfigurationExtentionPutDto
    {
        /// <summary>
        /// 首重
        /// </summary>
        [Display(Name = "首重")]
        [Required(ErrorMessage = "首重")]
        public decimal FirstWeight { get; set; }

        /// <summary>
        /// 最大重量
        /// </summary>
        [Display(Name = "最大重量")]
        [Required(ErrorMessage = "最大重量")]
        public decimal MaxWeight { get; set; }

        /// <summary>
        /// 起步价
        /// </summary>
        [Display(Name = "起步价")]
        [Required(ErrorMessage = "起步价为必填项")]
        public decimal StartPrice { get; set; }

        /// <summary>
        /// 续重价格
        /// </summary>
        [Display(Name = "续重价格")]
        [Required(ErrorMessage = "{0} 为必填项")]
        public decimal EveryWeightPrice { get; set; }

        /// <summary>
        /// 编辑人
        /// </summary>
        [Display(Name = "编辑人")]
        public string Editer { get; set; }

        /// <summary>
        /// 同城最大公里界限
        /// </summary>
        [Display(Name = "同城最大公里界限")]
        public int? SameCityMaxMileage { get; set; }

        /// <summary>
        /// 同城折扣率
        /// </summary>
        [Display(Name = "同城折扣率")]
        public decimal? SameCityRatio { get; set; }

        /// <summary>
        /// 同省最大公里界限
        /// </summary>
        [Display(Name = "同省最大公里界限")]
        public int? SameProvinceMileage { get; set; }

        /// <summary>
        /// 同省折扣率
        /// </summary>
        [Display(Name = "同省折扣率")]
        public decimal? SameProvinceRatio { get; set; }

        /// <summary>
        /// 单公里价格
        /// </summary>
        [Display(Name = "单公里价格")]
        public decimal? MileagePrice { get; set; }
    }
}